package edu.yctc.manage.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.yctc.manage.entity.StudentDO;
import edu.yctc.manage.utils.PageQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zyj
 * @email 1527215026@qq.com
 * @date 2021-03-29 14:02:07
 */
@Mapper
public interface StudentDAO extends BaseMapper<StudentDO> {
    int insert(StudentDO studentDO);

    List<StudentDO> selectList(PageQuery pageQuery);

    int getTotal();

    int update(StudentDO studentDO);

    // 设了唯一索引, 学生姓名唯一
    StudentDO getStudentDOByName(String name);
}
